namespace java com.znyj.cloud.thrift
//  enum test {
//    A,
//    B = 1,
//    C = 0x02,
//    D
//  }

  struct RequestTaskMsg{
    1: required         string                           userId,              #
    2: required         string                           deviceId,            #
    3: required         i64                              createTime,          #
    4: optional         string                           userLocation,        #
    5: required         i64                              durationSec,         #
    6: required         string                           controlMsg           #
  }

  struct ResponseTaskMsg{
    1: required         string                           userId,              #
    2: required         string                           deviceId,            #
    3: required         i64                              orderId,             #
    4: required         i64                              errorMsg             #
  }

  struct RequestUpdateMsg{
    1: required         string                           userId,              #
    2: required         string                           deviceId,            #
    3: required         string                           upMsg                #
  }

  struct ResponseUpdateMsg{
    1: required         string                           userId,              #
    2: required         string                           deviceId,            #
    3: required         i64                              orderId,             #
    4: required         i64                              errorMsg             #
  }

//  struct InfoOfOrderId{
//    1: required         string                            userId,
//    2: required         string                            deviceId,
//    3: required         i64                               orderId,
//    4: required         i64                               createTime,
//    5: required         i64                               durationSec,
//    6: required         i64                               sendStatus,
//    7: required         string                            controlMsg,
//    8: required         string                            userLocation,
//    9: required         string                            executeResult       #还没有生成
//  }

  service  InnerThriftService {
    ResponseTaskMsg sendTask2backEnd(
      1:RequestTaskMsg msg
    )

    ResponseUpdateMsg sendUpdate2backEnd(
      1:RequestUpdateMsg msg
    )

    ResponseTaskMsg resendTask2backEnd(
      1:i64 orderId,
      2:string deviceId,
      3:i64 createTime,
      4:string controlMsg
    )

    string getRealTimeDeviceInfo(
      1: string deviceId
    )

//    string getSystemInfo(
//      1: string res
//    )

//    InfoOfOrderId getOrderIdInfo(
//      1: i64 orderId
//    )
  }

#thrift -r -gen java innerService.thrift